package cn.edu.bit.lixin.blog.dao;

import java.util.List;

import cn.edu.bit.lixin.blog.entity.Reply;

public class ReplyDAO extends BaseDAO {
	
	/**
	 * 根据给出的blogid查询这篇日志的所有回复
	 * @param blogid
	 * @return
	 */
	public List<Reply> getSpecificReplies(int blogid){
		String hql = "from Reply r where r.blog.id=? order by id";
		List<Reply> replies = super.findByHQL(hql,blogid);
		return replies;
	}
}
